package com.example.myapplication.dao;

import com.example.myapplication.model.Game;
import com.example.myapplication.model.GameSignup;
import com.example.myapplication.model.User;

import cn.bmob.v3.BmobQuery;
import cn.bmob.v3.BmobUser;
import cn.bmob.v3.datatype.BmobPointer;
import cn.bmob.v3.exception.BmobException;
import cn.bmob.v3.listener.FindListener;
import cn.bmob.v3.listener.SaveListener;
import cn.bmob.v3.listener.UpdateListener;

import java.util.List;

public class GameSignupDao {

    // 单例模式
    private static GameSignupDao instance;

    public static GameSignupDao getInstance() {
        if (instance == null) {
            instance = new GameSignupDao();
        }
        return instance;
    }

    /**
     * 用户报名活动（直接成功）
     */
    public void signUp(String gameId, final DataCallback<String> callback) {

    }

    /**
     * 用户取消报名
     */
    public void cancelSignUp(String signupId, String gameId, final DataCallback<Void> callback) {

    }


    /**
     * 获取当前用户的所有报名记录
     */
    public void getUserSignups(final DataCallback<List<GameSignup>> callback) {

    }

    /**
     * 发布者移除报名者（核心管理功能）
     */
    public void removeParticipant(String signupId, String gameId, final DataCallback<Void> callback) {

    }
}